package com.xiaoyi.dao.impl;

import com.xiaoyi.dao.BaseDao;
import com.xiaoyi.dao.SysRegionDao;
import com.xiaoyi.entity.SysRegion;

import java.util.List;

public class SysRegionDaoImpl extends BaseDao<SysRegion> implements SysRegionDao {
    @Override
    public List<SysRegion> getAddressByParentId(String parentId) {
        String sql="select * from sys_region where parent_id=?";
        return executeQuery(sql,SysRegion.class,parentId);
    }
}
